﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoPartsSearch.Domain.Abstract;
using AutoPartsSearch.Domain.Common;
using AutoPartsSearch.Domain.Entities.Enums;

namespace AutoPartsSearch.Domain.Concrete.Repositories
{
    public class BaseRepository
    {
        private ILanguageGetter _languageGetter;

        protected string CurrentLanguage
        {
            get { return _languageGetter.GetCurrentLanguage().Name; }
        }

        public BaseRepository(ILanguageGetter languageGetter)
        {
            this._languageGetter = languageGetter;
        }
    }
}
